package cn.com.shopec.erp.base.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;



/**
 * 供应商基本信息
 * @author Administrator
 *
 */
@Entity
@Table(name = "TBL_SUPPLIER_INFO")
public class SupplierInfo implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2981579473353828350L;

	/** ID */
	private String id;
	
	/** Code */
	private String code;
	
	/** 供应商名称 */
	private String supName;
	
	/** 供应商简称*/
	private String supShortName;
	
	/** 供应商编码 */
	private String supCode;
	
	/** 联系人 */
	private String linkman;
	
	/** 联系电话 */
	private String telephoneNum;
	
	/** 手机号码 */
	private String mobileNhonenum;
	
	/** 电子邮箱 */
	private String email;
	
	/** 经营类别*/
	private String operateTpye;
	
	/** 注册时间 */
	private String registerDate;
	
	/** 修改时间 */
	private String updateTime;
	
	/** 联系地址 */
	private String address;
	
	/** 合同日期 开始时间*/
	private String  contractDayStrat;
	
	/** 合同日期 结束时间*/
	private String  contractDayEnd;
	
	/** 删除标识（0：已删除 1：未删除） */
	private Integer deleteFlag;
	
	/**供应商帐号*/
	private String account;
	
	/**供应商密码*/
    private String password;/**供应商密码*/
    
    /** 解锁锁定状态(0：解锁1：锁定)*/
    private String state;
    
    private String createStartDate;
    private String createEndDate;
       
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "SUP_NAME")
	public String getSupName() {
		return supName;
	}

	public void setSupName(String supName) {
		this.supName = supName;
	}
	@Column(name = "SUP_SHORT_NAME")
	public String getSupShortName() {
		return supShortName;
	}

	public void setSupShortName(String supShortName) {
		this.supShortName = supShortName;
	}
	@Column(name = "SUP_CODE")
	public String getSupCode() {
		return supCode;
	}

	public void setSupCode(String supCode) {
		this.supCode = supCode;
	}
	@Column(name = "LINKMAN")
	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	@Column(name = "TELEPHONE_NUM")
	public String getTelephoneNum() {
		return telephoneNum;
	}

	public void setTelephoneNum(String telephoneNum) {
		this.telephoneNum = telephoneNum;
	}
	@Column(name = "MOBILE_PHONENUM")
	public String getMobileNhonenum() {
		return mobileNhonenum;
	}

	public void setMobileNhonenum(String mobileNhonenum) {
		this.mobileNhonenum = mobileNhonenum;
	}
	@Column(name = "EMAIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	@Column(name = "register_date")
	public String getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}
	@Column(name = "UPDATE_TIME")
	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "ADDRESS")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Column(name = "DELETE_FLAG")
	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name ="CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Column(name = "STATE")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Column(name = "ACCOUNT")	
	public String getAccount()
     {
          return account;
     }

     public void setAccount(String account)
     {
          this.account = account;
     }
     
     @Column(name = "PASSWORD")
     public String getPassword()
     {
          return password;
     }

     public void setPassword(String password)
     {
          this.password = password;
     }

     @Column(name ="OPERATE_TYPE")
	public String getOperateTpye() {
		return operateTpye;
	}

	public void setOperateTpye(String operateTpye) {
		this.operateTpye = operateTpye;
	}

	 @Column(name ="CONTRACT_DAY_STRAT")
	public String getContractDayStrat() {
		return contractDayStrat;
	}

	public void setContractDayStrat(String contractDayStrat) {
		this.contractDayStrat = contractDayStrat;
	}

	 @Column(name ="CONTRACT_DAY_END")
	public String getContractDayEnd() {
		return contractDayEnd;
	}

	public void setContractDayEnd(String contractDayEnd) {
		this.contractDayEnd = contractDayEnd;
	}
	@Transient
	public String getCreateStartDate() {
		return createStartDate;
	}

	public void setCreateStartDate(String createStartDate) {
		this.createStartDate = createStartDate;
	}
	@Transient
	public String getCreateEndDate() {
		return createEndDate;
	}

	public void setCreateEndDate(String createEndDate) {
		this.createEndDate = createEndDate;
	}
}
